package com.ruoyi.park.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 业主车辆对象 car_info
 * 
 * @author ru博雅oyi
 * @date 2023-12-11
 */
public class CarInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车辆编号 */
    private Long carId;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String carNo;

    /** 房屋编号 */
    @Excel(name = "房屋编号")
    private Long roomId;

    /** 汽车品牌 */
    @Excel(name = "汽车品牌")
    private String carBrand;

    /** 车牌类型 */
    @Excel(name = "车牌类型")
    private String carNoType;

    /** 车类型 */
    @Excel(name = "车类型")
    private String carType;

    /** 颜色 */
    @Excel(name = "颜色")
    private String carColor;

    /** 业主 */
    @Excel(name = "业主")
    private Long ownerId;

    /** 车位 */
    @Excel(name = "车位")
    private Long spaceId;

    /** 有效期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date validityDate;

    /** 状态 */
    @Excel(name = "状态")
    private String carStatus;

    /** 起租时间 */
    private Date startRental;

    /** 结租时间 */
    private Date endRental;

    /** 业主车辆 */
    private String isOwner;

    /** 是否有效 1、有效 0、无效 */
    private Long enable;

    private String ownerName;
    private String spaceCode;
    private String roomInfo;//房屋信息

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public String getSpaceCode() {
        return spaceCode;
    }

    public void setSpaceCode(String spaceCode) {
        this.spaceCode = spaceCode;
    }

    public String getRoomInfo() {
        return roomInfo;
    }

    public void setRoomInfo(String roomInfo) {
        this.roomInfo = roomInfo;
    }

    public void setCarId(Long carId)
    {
        this.carId = carId;
    }

    public Long getCarId() 
    {
        return carId;
    }
    public void setCarNo(String carNo) 
    {
        this.carNo = carNo;
    }

    public String getCarNo() 
    {
        return carNo;
    }
    public void setRoomId(Long roomId) 
    {
        this.roomId = roomId;
    }

    public Long getRoomId() 
    {
        return roomId;
    }
    public void setCarBrand(String carBrand) 
    {
        this.carBrand = carBrand;
    }

    public String getCarBrand() 
    {
        return carBrand;
    }
    public void setCarNoType(String carNoType) 
    {
        this.carNoType = carNoType;
    }

    public String getCarNoType() 
    {
        return carNoType;
    }
    public void setCarType(String carType) 
    {
        this.carType = carType;
    }

    public String getCarType() 
    {
        return carType;
    }
    public void setCarColor(String carColor) 
    {
        this.carColor = carColor;
    }

    public String getCarColor() 
    {
        return carColor;
    }
    public void setOwnerId(Long ownerId) 
    {
        this.ownerId = ownerId;
    }

    public Long getOwnerId() 
    {
        return ownerId;
    }
    public void setSpaceId(Long spaceId) 
    {
        this.spaceId = spaceId;
    }

    public Long getSpaceId() 
    {
        return spaceId;
    }
    public void setValidityDate(Date validityDate) 
    {
        this.validityDate = validityDate;
    }

    public Date getValidityDate() 
    {
        return validityDate;
    }
    public void setCarStatus(String carStatus) 
    {
        this.carStatus = carStatus;
    }

    public String getCarStatus() 
    {
        return carStatus;
    }
    public void setStartRental(Date startRental) 
    {
        this.startRental = startRental;
    }

    public Date getStartRental() 
    {
        return startRental;
    }
    public void setEndRental(Date endRental) 
    {
        this.endRental = endRental;
    }

    public Date getEndRental() 
    {
        return endRental;
    }
    public void setIsOwner(String isOwner) 
    {
        this.isOwner = isOwner;
    }

    public String getIsOwner() 
    {
        return isOwner;
    }
    public void setEnable(Long enable) 
    {
        this.enable = enable;
    }

    public Long getEnable() 
    {
        return enable;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("carId", getCarId())
            .append("carNo", getCarNo())
            .append("roomId", getRoomId())
            .append("carBrand", getCarBrand())
            .append("carNoType", getCarNoType())
            .append("carType", getCarType())
            .append("carColor", getCarColor())
            .append("ownerId", getOwnerId())
            .append("spaceId", getSpaceId())
            .append("validityDate", getValidityDate())
            .append("carStatus", getCarStatus())
            .append("startRental", getStartRental())
            .append("endRental", getEndRental())
            .append("isOwner", getIsOwner())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("enable", getEnable())
            .toString();
    }
}
